import request  from "@/utils/request.js";

/*柜机类型查询API*/
export function listOfCabinetMachineTypes(query){
    return request({
        url: '/device/cabinetType/list',
        method: 'get',
        params: query
    })
}

/**
 * 新增柜机类型
 */
export function addCabinetType(data) {
    return request({
        url: '/device/cabinetType',
        method: 'post',
        data: data
    })
}

/**
 * 修改柜机类型
 */
export function updateCabinetType(data) {
    return request({
        url: '/device/cabinetType',
        method: 'put',
        data: data
    })
}

/**
 * 删除柜机类型
 */
export function delCabinetType(ids) {
    return request({
        url: '/device/cabinetType',
        method: 'delete',
        data: ids
    })
}
export function deletedms(id){
    return request({
        url: '/device/cabinetType/' + id,
        method: 'delete'
    })
}